====== masa Template ====== ---- template ---- description : Template with sidebar (taken from arctic template) and action menu like in MoinMoin author : Kirill Bezrukov email : kirbez@mail.ru lastupdate : 2008-04-22 compatible : 2014-09-29d "Hrun", 2007-06-26b depends : conflicts : similar : tags : !discontinued, sidebar, moinmoin, navigation downloadurl : https://trello.com/1/cards/5d71268b0dd45c65dcb3b656/attachments/5d7126a9f3a90b139d65cf33/download/masa.zip bugtracker : # eg. https://github.com/example/dokuwiki-template-sample/issues sourcerepo : # eg. https://github.com/example/dokuwiki-template-sample/ donationurl : # eg. https://www.paypal.com/... screenshot_img: https://trello.com/1/cards/5d71268b0dd45c65dcb3b656/attachments/6441963cdc8e9126841caf08/download/dokuwiki-template-masa.png ---- :!: [[template:orphans]] (contact mail bounced) :!: ===== Download and Install ====== Use the following URL to download this template: * [[https://trello.com/1/cards/5d71268b0dd45c65dcb3b656/attachments/5d7126a9f3a90b139d65cf33/download/masa.zip|masa.zip]] //(direct link)// * [[http://www.mediafire.com/?mfxrbymxvdn]] Refer to [[:template]] on how to install and use templates in DokuWiki. You can modify the template options from the configuration manager. ===== Features ===== * Optional left Sidebar -- thanks to the [[template:arctic|Arctic]] template! * Template configurable via the DokuWiki configuration manager * The Action Menu * Action menu elements configurable via the DokuWiki configuration manager * Allow to adding your own actions * English and Russian translation ===== Screenshots ===== {{https://trello.com/1/cards/5d71268b0dd45c65dcb3b656/attachments/6441963cdc8e9126841caf08/download/dokuwiki-template-masa.png?recache}} ===== Sidebar ===== ==== Sidebar Types ==== These are the different sidebar types. ^ Type ^ Description ^ | main | see [[#adding the main sidebar|main sidebar]] | | user | see [[#adding a user sidebar|user sidebar]] | | group | see [[#adding a group sidebar|group sidebar]] | | namespace | see [[#adding a namespace sidebar|namespace sidebar]] | | index | shows the DokuWiki index | | custom | see [[#adding custom sidebars|custom sidebar]]\\ This comes in handy for example if you like to include Google ads.| ===== ACL Setup ===== If you like to use the user- or group-sidebars you have to set up your ''/conf/acl.auth.php'' the right way. This is an example setup for a user "tom" (User-Name: tom) who is a member of group "@user". The "user sidebar namespace" is set to "''user''" and "group sidebar namespace" is set to "''group''". We will grant him write/page-creation/upload permissions for his own namespace and read/edit permissions for the ''group:users'' namespace to everyone who's part of the group "@users". ---- snip ---- user:* @ALL 0 group:* @ALL 0 user:tom:* tom 8 group:users:* @user 2 ---- snap ---- ===== First Steps ===== ==== Adding the Main Sidebar ==== First of all you probably like to create the main sidebar. If you didn't change the "Pagename" setting you simply have to create a wikipage called ''sidebar''((or whatever you set ''pagename'' to)) and add some links. ====== Navigation ====== [[playground]]\\ [[syntax]]\\ [[some:more:links]]\\ ==== Adding a User Sidebar ==== If you've enabled ''user sidebars'' you can add a sidebar for each registered user. All you have to do is create a wikipage ''user:username:sidebar''. Note, this feature depends on a proper [[#acl-setup]]. ==== Adding a Group Sidebar ==== Group sidebars are set up just like user sidebars. ==== Adding a Namespace Sidebar ==== If you've enable namespace sidebars you can add a sidebar for every namespace you like. Thus the naming scheme is the same for all sidebars, the only thing you've to do is creating a page called, you guessed right ;-), "sidebar" inside the desired namespace. This sidebar, then, will only show if you browse pages within this namespace. ===== Action management ===== This template supports action menu management from the administration tools which are shipped with DokuWiki. ===== Sites using this Template ===== Add your own in this list if you use this template! * [[http://www.evenfooting.org|EvenFooting.org]] - Open source franchising, small business ideas. * I've modified it slightly to add some syntax hints and syntax plugin hints at the bottom of the edit page. * [[http://freeconsole.org/anime/wiki|GNU/Anime]] - Wiki for anime-otakus of GNU userland * [[http://www.ukd-stuttgart.de|Karate Sport Club in Stuttgart, Germany]] - Closed Wiki + Web Homepage * [[http://www.aspyct.org/ | Aspyct]] An advanced AOP library for Python. * [[http://www.gmarapet.ru/brewiki | BreWiki]] Russian Homebrew Wiki ===== Changelog ===== * **2008-04-22** * + Optional sidebar (for Reder :)) * **2008-03-31** * Initial release ===== Compatibility ===== This template has been tested with the following browsers : * Mozilla Firefox 2.0 (windows) * Mozilla Firefox 3.0 Beta 5 (windows) * Mozilla Firefox 3.0.2 (Linux) * Mozilla Firefox 3.5.7 (mac) * Mozilla Firefox 3.5.9 (windows) * Mozilla Firefox 3.6 (windows) * Internet Explorer 6 * Internet Explorer 7 * Opera 9.27 * Safari 3.1.1 (windows) * Safari 4.0.4 (mac) If you verify this template against a browser which is not in the above list, add it ! ===== Known bugs and issues ===== == no URL rewrite == For me the action-thing only works, if I change lines 78 to 109 in tpl_function.php to switch($am) { case 'export_raw': print ' '; break; case 'export_html': print ' '; break; case 'export_htmlbody': print ' '; break; case 'export_odt': print ' '; break; case 'backlink': print ' '; break; case 'pagemove': print ' '; break; case 'config': print ' '; break; case 'purge': print ' '; break; case '---': print ' '; break; default: print ' '; break; } What now happens is, that the current site-ID is added to the function-call you generally add with &do=... It´s just a hack, so actually you should code the lines somehow like " if($urlrewrite==no){...} else ... Feel free to improve the code. == details page: date formatted wrong == In **detail.php**, the function call **date** should be replaced by **strftime**.\\ 2009-07-24 ===== Credits ===== * Thanks to the [[:Template#arctic|Arctic]] template author. I have used that template as a starting point for creating this one. ===== Discussion ===== * Is it possible to make the sidebar optional? --- //Reder 2008/04/22 03:50// * It's done. In admin menu now it have check box to on/off sidebar * Can you put the TOC into the sidebar like arctic template? --- //Haya 2008/04/29 07:50//